home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Technology Seed / Jan. '98 ATS.toast / FireWire 1.1 DDK DR1 / Source / OpenTransport / MakeFile < prev   
Encoding:
Makefile  |  1997-06-10  |  8.8 KB  |  282 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for Open Transport networking driver sample
  5. #                code.
  6. #
  7. #    Written by:    Erik Staats
  8. #
  9. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  10. #
  11. #    Change History (most recent first):
  12. #
  13. #      <FW35>     5/29/97    GG        Bumped version to 1.01a4.
  14. #      <FW34>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  15. #      <FW33>     4/29/97    GG        Bumped version to 1.0.1a2.
  16. #      <FW32>     4/10/97    GG        Bumped version to 1.0.1d1.
  17. #      <FW31>     3/27/97    GG        Bumped version to 1.0 GM.
  18. #      <FW30>     3/19/97    GG        Bumped version to 1.0b3.
  19. #      <FW29>     3/12/97    GG        Bumped version to 1.0b2.
  20. #      <FW28>     2/19/97    GG        Bumped version to 1.0a3.
  21. #      <FW27>     2/11/97    GG        Bumped copyright to 1997.
  22. #      <FW26>     2/11/97    GG        Bumped version to 1.0a2.
  23. #      <FW25>      2/4/97    GG        
  24. #      <FW24>      2/4/97    GG        Bumped version to 1.0d24.
  25. #      <FW23>     1/28/97    GG        Bumped version to 1.0d23.
  26. #      <FW22>     1/27/97    ES        Changed protocol driver file type to 'ndrv'. Fixes bug #1621930.
  27. #      <FW21>     1/21/97    GG        Bumped version to 1.0d22.
  28. #      <FW20>     1/16/97    ES        Changed FWOTDriver file type to 'fwpd'.
  29. #      <FW19>      1/3/97    ES        Removed OTVDevice from build.
  30. #      <FW18>      1/2/97    GG        Bumped Version to 1.0d21.
  31. #      <FW17>    12/20/96    GG        Bumped Version to 1.0d20.
  32. #      <FW16>     12/6/96    GG        Bumped version to 1.0d19.
  33. #      <FW15>    11/14/96    GG        Bumped version to 1.0d18.
  34. #      <FW14>    10/31/96    ES        Bumped version to 1.0d17.
  35. #      <FW13>     10/2/96    ES        Bumped version to 1.0d15.
  36. #      <FW12>     9/12/96    ES        Bumped version to 1.0d14.
  37. #      <FW11>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  38. #                                    ETO #20 and forward.
  39. #      <FW10>     7/11/96    ES        Bumped version to 1.0d13.
  40. #       <FW9>     7/11/96    ES        Bumped version to 1.0d12.
  41. #       <FW8>     6/24/96    ES        Bumped version to 1.0d11.
  42. #       <FW7>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  43. #       <FW6>     5/30/96    ES        Bumped version to 1.0d10.
  44. #       <FW5>     4/19/96    ES        Updated to version 1.0d9.
  45. #       <FW4>     4/15/96    ES        Added some dependencies to FWOTDriver.
  46. #       <FW3>     3/29/96    ES        Bumped version to 1.0d8.
  47. #       <FW2>     3/28/96    ES        Fill in contains and written by fields.
  48. #       <FW1>     3/28/96    ES        first checked in
  49. #
  50. #
  51.  
  52. ################################################################################
  53. #
  54. # Define some directories
  55. #
  56.  
  57. FWOTDriverRootDir            =    :
  58.  
  59. FWSampleDir                    =    {FWOTDriverRootDir}::
  60.  
  61. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  62. OTInterfacesDir                =    {FWOTDriverRootDir}Interfaces:
  63.  
  64. SysLibrariesDir                =    {FWSampleDir}Libraries:
  65. OTLibrariesDir                =    {FWOTDriverRootDir}Libraries:
  66.  
  67. FWOTDriverSourceDir            =    {FWOTDriverRootDir}FWOTDriver:
  68.  
  69. BuildResultsDir                =    {FWSampleDir}BuildResults:
  70. ObjectsDir                    =    {BuildResultsDir}Objects:
  71. ExtensionsDir                =    {BuildResultsDir}Extensions:
  72.  
  73. ################################################################################
  74. #
  75. # Define version info
  76. #
  77.  
  78. FWVersion                    =    1
  79. FWRevision                    =    0
  80. FWBuildStage                =    alpha
  81. FWBuildNumber                =    4
  82. FWShortVersionString        =    '"1.0.1a4"'
  83. FWLongVersionString            =    '"1.0.1a4, © 1995-97 Apple Computer, Inc."'
  84.  
  85.  
  86. ################################################################################
  87. #
  88. # Define stuff for 68K compilation
  89. #
  90.  
  91. C68KOptions                    =    -d ccompile                                    ∂
  92.                                 -b                                            ∂
  93.                                 -r                                            ∂
  94.                                 -i "{SysInterfaces}"                        ∂
  95.                                 -i "{CIncludes}"                            ∂
  96.                                 -mc68020
  97.  
  98. Asm68K                        =    Asm
  99.  
  100. C68K                        =    SC
  101.  
  102. Link68K                        =    Link
  103.  
  104.  
  105. ################################################################################
  106. #
  107. # Define stuff for PowerPC compilation
  108. #
  109.  
  110. MrCOptions                    =    -opt speed                                    ∂
  111.                                 -w 2,7,35                                    ∂
  112.                                 -d TRUE=1                                    ∂
  113.                                 -d FALSE=0                                    ∂
  114.                                 -i "{SysInterfacesDir}"                        ∂
  115.                                 -i "{OTInterfacesDir}"                        ∂
  116.                                 -i "{CIncludes}"
  117.  
  118. CPPCOptions                    =    {MrCOptions}
  119.  
  120. AsmPPC                        =    PPCAsm
  121.  
  122. AsmPPCOptions                =    -dialect PowerPC                            ∂
  123.                                 -o {Targ}
  124.  
  125. CPPC                        =    MrC
  126.  
  127. LinkPPC                        =    PPCLink
  128.  
  129.  
  130. ################################################################################
  131. #
  132. # Define stuff for rez
  133. #
  134.  
  135. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  136.                                 -d FWRevision={FWRevision}                    ∂
  137.                                 -d FWBuildStage={FWBuildStage}                ∂
  138.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  139.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  140.                                 -d FWLongVersionString={FWLongVersionString}
  141.  
  142.  
  143. ################################################################################
  144. #
  145. # Open Transport driver
  146. #
  147.  
  148. "{ObjectsDir}DLPIRoutines.c.o"    ƒ                                            ∂
  149.                             "{FWOTDriverSourceDir}DLPIRoutines.c"            ∂
  150.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  151.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  152.                             "{FWOTDriverSourceDir}HWSpecific.h"
  153.     {CPPC}                                                                    ∂
  154.         "{FWOTDriverSourceDir}DLPIRoutines.c"                                 ∂
  155.         -i "{FWOTDriverSourceDir}"                                            ∂
  156.         {CPPCOptions}                                                        ∂
  157.         -o {Targ}
  158.  
  159. "{ObjectsDir}EntryPoints.c.o"    ƒ                                            ∂
  160.                             "{FWOTDriverSourceDir}EntryPoints.c"            ∂
  161.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  162.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  163.                             "{FWOTDriverSourceDir}HWSpecific.h"
  164.     {CPPC}                                                                    ∂
  165.         "{FWOTDriverSourceDir}EntryPoints.c"                                 ∂
  166.         -i "{FWOTDriverSourceDir}"                                            ∂
  167.         {CPPCOptions}                                                        ∂
  168.         -o {Targ}
  169.  
  170. "{ObjectsDir}HWSpecific.c.o"    ƒ                                            ∂
  171.                             "{FWOTDriverSourceDir}HWSpecific.c"                ∂
  172.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  173.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  174.                             "{FWOTDriverSourceDir}HWSpecific.h"
  175.     {CPPC}                                                                    ∂
  176.         "{FWOTDriverSourceDir}HWSpecific.c"                                 ∂
  177.         -i "{FWOTDriverSourceDir}"                                            ∂
  178.         {CPPCOptions}                                                        ∂
  179.         -o {Targ}
  180.  
  181. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  182.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  183.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  184.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  185.                             "{FWOTDriverSourceDir}FWOTDriver.exp"
  186.     {LinkPPC}                                                                ∂
  187.         -t 'ndrv'                                                            ∂
  188.         -c 'fw  '                                                            ∂
  189.         -xm sharedlibrary                                                    ∂
  190.         -w                                                                     ∂
  191.         -@export "{FWOTDriverSourceDir}FWOTDriver.exp"                        ∂
  192.         -init InitCFMRoutine                                                ∂
  193.         -term TerminateCFMRoutine                                            ∂
  194.         "{ObjectsDir}DLPIRoutines.c.o"                                        ∂
  195.         "{ObjectsDir}EntryPoints.c.o"                                        ∂
  196.         "{ObjectsDir}HWSpecific.c.o"                                        ∂
  197.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  198.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  199.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  200.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  201.         "{SysLibrariesDir}PCILib"                                            ∂
  202.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  203.         "{OTLibrariesDir}OpenTptModuleLib"                                    ∂
  204.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  205.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  206.         -librename StdCLib.xcoff=StdCLib                                    ∂
  207.          -o {Targ}
  208.  
  209. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  210.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  211.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  212.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  213.                             "{FWOTDriverSourceDir}FWOTDriver.exp"            ∂
  214.                             "{FWOTDriverSourceDir}FWOTDriver.r"                ∂
  215.                             "{FWOTDriverRootDir}MakeFile"
  216.     Rez                                                                        ∂
  217.         {RezOptions}                                                        ∂
  218.         "{FWOTDriverSourceDir}FWOTDriver.r"                                    ∂
  219.         -a                                                                    ∂
  220.         -o {Targ}
  221.  
  222. "{ExtensionsDir}FWOTDriverLib"    ƒƒ                                            ∂
  223.                             "{ExtensionsDir}FWOTDriver"
  224.     Duplicate                                                                ∂
  225.         -y                                                                    ∂
  226.         "{ExtensionsDir}FWOTDriver"                                            ∂
  227.         {Targ}
  228.     SetFile                                                                    ∂
  229.         -t 'shlb'                                                            ∂
  230.         {Targ}
  231.  
  232.  
  233. ################################################################################
  234. #
  235. # Open Transport virtual device.
  236. #
  237.  
  238. "{ObjectsDir}OTVDevice.c.o"    ƒ                                                ∂
  239.                             "{FWOTDriverSourceDir}OTVDevice.c"                ∂
  240.                             "{FWOTDriverSourceDir}OTVDevice.h"
  241.     {CPPC}                                                                    ∂
  242.         "{FWOTDriverSourceDir}OTVDevice.c"                                     ∂
  243.         -i "{FWOTDriverSourceDir}"                                            ∂
  244.         {CPPCOptions}                                                        ∂
  245.         -o {Targ}
  246.  
  247. "{ExtensionsDir}OTVDevice"    ƒƒ                                                ∂
  248.                             "{ObjectsDir}OTVDevice.c.o"                        ∂
  249.                             "{FWOTDriverSourceDir}OTVDevice.exp"
  250.     {LinkPPC}                                                                ∂
  251.         -t 'vdev'                                                            ∂
  252.         -c 'fw  '                                                            ∂
  253.         -xm sharedlibrary                                                    ∂
  254.         -w                                                                     ∂
  255.         -@export "{FWOTDriverSourceDir}OTVDevice.exp"                        ∂
  256.         -main TheVDeviceDescription                                            ∂
  257.         "{ObjectsDir}OTVDevice.c.o"                                            ∂
  258.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  259.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  260.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  261.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  262.         "{SysLibrariesDir}PCILib"                                            ∂
  263.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  264.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  265.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  266.         -librename StdCLib.xcoff=StdCLib                                    ∂
  267.          -o {Targ}
  268.  
  269. "{ExtensionsDir}OTVDevice"    ƒƒ                                                ∂
  270.                             "{FWOTDriverSourceDir}OTVDevice.r"                ∂
  271.                             "{FWOTDriverRootDir}MakeFile"
  272.     Rez                                                                        ∂
  273.         {RezOptions}                                                        ∂
  274.         "{FWOTDriverSourceDir}OTVDevice.r"                                    ∂
  275.         -a                                                                    ∂
  276.         -o {Targ}
  277.  
  278.  
  279. FWOTDriver    ƒ                                                                ∂
  280.                         "{ExtensionsDir}FWOTDriver"                            ∂
  281.                         "{ExtensionsDir}FWOTDriverLib"
  282.